package top.infopub.mgr.bpa.dao;

import com.github.pagehelper.Page;

import top.infopub.generic.GenericDao;
import top.infopub.mgr.bpa.domain.EffectPlanDomain;
import top.infopub.mgr.bpa.vo.EffectPlanVo;
import top.infopub.model.bpa.EffectPlan;


/**
 * 创效计划(BPA_EFFECT_PLAN)
 **/
public interface EffectPlanDao extends GenericDao<EffectPlan, String> {

    Page<EffectPlanDomain> selectByDomainWhere(EffectPlanVo effectPlanVo);

    Page<EffectPlanDomain> selectMyCheckByDomainWhere(EffectPlanVo effectPlanVo);

    EffectPlanVo queryById(String id);

    /**
     * 根据计划年度和项目编号查询最新的创效计划
     * @param belongsYear 计划年度
     * @param proCode 项目编号
     * @param processStatus 状态
     * @return 
     * @see
     */
    EffectPlan selectLastedEffectPlan(EffectPlan effectPlan);
}